package com.liuning.graduationdemo.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.liuning.graduationdemo.dto.UserDTO;
import com.liuning.graduationdemo.entity.Doctor;
import com.liuning.graduationdemo.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author pumpkin
 * @since 2022-04-07
 */
public interface IUserService extends IService<User> {

    UserDTO login(UserDTO userDTO);

    User register(UserDTO userDTO);

    Page<User> findPage(Page<User> page, String username, String nickname, String address,String roleType);

    Page<User> findDoctorPage(Page<User> page, String nickname, Integer deptId,String roleType);

    Page<User> findPatientPage(Page<User> page, String nickname,String roleType);
}
